PEGetPrintOptions

Use PEGetPrintOptions to retrieve the print options specified for the report (the options that are set in the Print common dialog box) and use them to fill in PEPrintOptions. Use this function to retrieve print options from the report in order to update them and pass back using PESetPrintOptions.

C Syntax
BOOL CRPE_API PEGetPrintOptions (
        short printJob,
        PEPrintOptions FAR *options );
Parameters

printJob

Specifies the print job that you want to query to determine which print options have been set using the Print common dialog box.

options

Specifies a pointer to PEPrintOptions.

Returns
VB Syntax

VB Sample Code for modifying title, options, margins, and date

Declare Function PEGetPrintOptions Lib "crpe32.dll" (
    ByVal printJob As Integer, Options As PEPrintOptions ) As Integer
Delphi Syntax

Delphi code for getting/setting print options

function PEGetPrintOptions (
    printJob: Word;
    var options: PEPrintOptions
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com